﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ProductTypeManage : BasePage 
{
    public int Id
    {
        get
        {
            return string.IsNullOrEmpty(Request.QueryString["id"]) ? 0 : Convert.ToInt32(Request.QueryString["id"]);
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataBind();
        }
    }
    //翻页
    protected void Grid_Brand_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        this.Grid_Brand.PageIndex = e.NewSelectedIndex;
    }
    //绑定
    protected void DataBind() 
    {
        this.Grid_Brand.DataSource = BarberShop.BLL.ProductTypeBLL.GetProductList("");
        this.Grid_Brand.DataBind();
    }


}